﻿using GalaSoft.MvvmLight.Messaging;
using log4net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KINLO.UI.Main.Hepler
{
    public class Logger
    {
        private static readonly log4net.ILog log = log4net.LogManager.GetLogger(typeof(Logger));

        public static void Info(string message)
        {
            log.Info(message);
            Messenger.Default.Send(string.Format(message), "ReceiveEventInfo");
        }

        public static void Err(string message)
        {
            log.Error(message);
            Messenger.Default.Send(string.Format(message), "ReceiveEventInfo");
        }


    }
}
